package com.dcw.lixb.designmode.state;

/**
 * @author lixiaobin
 * @date 2020-07-29 15:29:02
 * @desc 描述信息
 */
public class StateMain {
    public static void main(String[] args) {
        Context context = new Context();
        StartState startState = new StartState();
        startState.doAction(context);
        System.out.println(context.getState().toString());

        StopState stopState = new StopState();
        stopState.doAction(context);
        System.out.println(context.getState().toString());
    }
}
